package fr.utbm;

import java.util.ArrayList;
import java.util.List;

public class Medecin extends User implements Comparable<Medecin> {
	
	private List<Patient> patients;

	public Medecin(int id, String username, String password, int type,
			String profil_nom, String profil_prenom, int profil_age,
			double profil_taille, String profil_photo_url) {
		
		super(id, username, password, type, profil_nom, profil_prenom, profil_age,
				profil_taille, profil_photo_url);
		
		patients = new ArrayList<Patient>();
	}
	
	public void addPatient(Patient patient) {
		patients.add(patient);
	}
	
	public List<Patient> getPatients() {
		return patients;
	}

	@Override
	public int compareTo(Medecin other) {
		return id.compareTo(other.id);
	}

}
